package Sstring;

public class Demo {
    public static void main(String[] args) {
        String regex1="[a-z]";//a-z的字符
        String regex2="[^a-z]";//除了a-z的字符
        System.out.println("a".matches(regex1));
        System.out.println("b".matches(regex2));
    }
}
